package com.ourteam.product.model.domain;

/**
 * Template Name : 枚举对象模板
 * Template Version : 1
 * Template Last Modfiy Date : Tue Oct 31 15:27:11 IRKT 2017
 * Auto Generate Date : 2017-11-15 14:54:00
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.enums.Enum;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;


public class ProductModelTypeEnum extends Enum {
    private static Map<String, ProductModelTypeEnum> enumValueMap = new HashMap<String, ProductModelTypeEnum>();

    /**
     *
     */
    public static final ProductModelTypeEnum UI = new ProductModelTypeEnum("UI",
            "");

    /**
     *
     */
    public static final ProductModelTypeEnum DB = new ProductModelTypeEnum("DB",
            "");

    /**
     *
     */
    public static final ProductModelTypeEnum DAO = new ProductModelTypeEnum("DAO",
            "");

    /**
     *
     */
    public static final ProductModelTypeEnum SERVICE = new ProductModelTypeEnum("SERVICE",
            "");

    /**
     *
     */
    public static final ProductModelTypeEnum DTO = new ProductModelTypeEnum("DTO",
            "");

    /**
     *
     */
    public static final ProductModelTypeEnum QUERY_BEAN = new ProductModelTypeEnum("QUERY_BEAN",
            "");

    /**
     *
     */
    public static final ProductModelTypeEnum ENUM = new ProductModelTypeEnum("ENUM",
            "");

    /**
     *
     */
    public static final ProductModelTypeEnum DATA_TYPE = new ProductModelTypeEnum("DATA_TYPE",
            "");
    private String desc;

    protected ProductModelTypeEnum(String arg0, String aDesc) {
        super(arg0);
        desc = aDesc;
        enumValueMap.put(arg0, this);
    }

    public String getDesc() {
        return desc;
    }

    public static ProductModelTypeEnum getEnum(String arg0) {
        return (ProductModelTypeEnum) enumValueMap.get(arg0);
    }

    public static Collection<ProductModelTypeEnum> getEnumList() {
        return enumValueMap.values();
    }
}
